package com.agency8x.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

@SuppressWarnings({"serial", "unchecked"})
public class BaseAgencyModel<M extends BaseAgencyModel<M>> extends Model<M> implements IBean {

	public M setUserId(java.lang.Integer id) {
		set("user_id", id);
		return (M)this;
	}

	public java.lang.Integer getUserId() {
		return get("user_id");
	}

	public M setUsername(java.lang.String value) {
		set("user_name", value);
		return (M)this;
	}

	public java.lang.String getUsername() {
		return get("user_name");
	}

	public M setRealname(java.lang.String realname) {
		set("realname", realname);
		return (M)this;
	}

	public java.lang.String getRealname() {
		return get("realname");
	}

	public M setNickname(java.lang.String value) {
		set("nickname", value);
		return (M)this;
	}

	public java.lang.String getNickname() {
		return get("nickname");
	}

	public M setOpenid(java.lang.String value) {
		set("openid_biz", value);
		return (M)this;
	}

	public java.lang.String getOpenid() {
		return get("openid_biz");
	}

	public M setHeadimgurl(java.lang.String value) {
		set("headimgurl", value);
		return (M)this;
	}

	public java.lang.String getHeadimgurl() {
		return get("headimgurl");
	}

	public M setStatus(java.lang.Short user_status) {
		set("user_status", user_status);
		return (M)this;
	}

	public java.lang.Short getStatus() {
		return get("user_status");
	}

	public java.lang.String getStatusText() {
		Short user_status=get("user_status");
		 return null!=user_status && user_status == 1 ? "正常":"冻结";
	}

	public M setSex(java.lang.Short value) {
		set("sex", value);
		return (M)this;
	}

	public java.lang.Short getSex() {
		return get("sex");
	}
	

}

